check users gender on the basis of user input